package com.yan.ems.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	@RequestMapping("/login")
	public String login() {
		System.out.println("login page!");
		return "login";
	}

	@RequestMapping("/index")
	public String index() {
		System.out.println("start page!");
//		EnergyPredictUtils.disposeAllInstances();
		return "index";
	}

	@RequestMapping("/forecast")
	public String forecast() {
		System.out.println("forecast page!");
		return "forecast";
	}

	@RequestMapping("/optimization")
	public String optimization() {
		System.out.println("optimization page!");
		return "optimization";
	}
}
